<?php  if (!defined('INSTALL')) exit('Access denied - use index.php.'); ?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8">
		<meta name="Developer" content="Pascal Kriete" />
		<title>SimplyPost Install - <?php echo $title; ?></title>
		
		<style type="text/css" media="screen">
		<!--
			body {
				font-family: "Trebuchet MS", Helvetica;
			}
			
			.hidden {
				display: none;
			}

			.tip {
				background: #ddf;
				font-size: 80%;
				padding: 5px;
				border: 1px solid #00a;
			}
			
			.note {
				background: #fdd;
				font-size: 80%;
				padding: 5px;
				border: 1px solid #a00;
			}
			
			.welcome {
				background: #ddf;
				font-size: 90%;
				padding: 5px;
				width: 500px;
				display: block;
				border: 1px solid #00a;	
			}
			
			.warning {
				background: #fdd;
				font-size: 90%;
				padding: 5px;
				width: 500px;
				display: block;
				border: 1px solid #a00;	
			}
			
			.button {
				color: #fff;
				width: 5em;
				background: #333;
				border: 1px solid #888;
			}
			
			#toggle {
				font-size: 80%;
				color: #00a;
				cursor: pointer;
			}
			
			#content {
				width: 500px;
				margin-left: auto;
				margin-right: auto;
			}
			
			table {
				width: 500px;
			}
			
			table h3 {
				border-bottom: 1px dotted black;
				margin-bottom: 10px;
			}
		-->
		</style>
		
		<script src="./assets/js/mootools.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" charset="utf-8">
		<!--
			init = function() {
				$('toggle').removeClass('hidden');
				myFx = []
				$$('.tip').each(function(e) {
					myFx.push(new Fx.Slide(e).hide());
				});
				
				$('toggle').addEvent('click', function() {
					myFx.each(function(e) {
						e.toggle();
					});
				});
				
				$('next').addEvent('submit', check);
				$('url').addEvent('blur', function() {
					var ur = $('url').value;
					if (ur.charAt(ur.length - 1) != '/')
						$('url').value = ur + '/';
				});
			}
			
			check = function(evt) {
				evt = new Event(evt);
				if($('password').value != $('pass_conf').value) {
					evt.stop();
					alert('Password does not match confirmation');
				}
			}
			
			window.addEvent('domready', init);
		//-->
		</script>
	</head>
<body>
	
<div id="content">